home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Amiga Amateur Radio User Group / AARUG UK #81 (199x)(Amiga Amateur Radio User Group UK)(PD)[WB][G4DCV].zip / AARUG UK #81 (199x)(Amiga Amateur Radio User Group UK)(PD)[WB][G4DCV].adf / DisView / !SCRIPTS.TXT < prev    next >
Text File  |  1995-05-29  |  1KB  |  39 lines

  1. ============                                        DISview [518]
  2. !SCRIPTS.TXT
  3. ============
  4.  
  5.  
  6. The "scripts" facility in NET allows you to run up/down scripts
  7. whenever particular PPP links come up/go down. 
  8.  
  9. To use this feature, edit the file ~/scripts to specify the names
  10. of "up" and "down" scripts to be executed when a connection is 
  11. made to a particular IP address. 
  12.  
  13.  
  14. >> Example of ~/scripts:
  15. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16. 158.152.1.222   up222   down222
  17.  
  18. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19.  
  20. Each line of the file has three fields. The first is the remote 
  21. IP address negotiated by PPP. The second and third are the 
  22. scripts (stored in ~/spool/scripts) to be executed when the link
  23. appears/disappears.
  24.  
  25. Thus in the example above, ~/spool/scripts/up222 is executed when
  26. the link to 158.152.1.222 appears, and ~/spool/scripts/down222 is
  27. executed when the link disappears.
  28.  
  29. Any NET commands may be placed in these scripts. For example,
  30. this is a useful place to find out the status of the Demon system
  31. and perhaps adjust routing and nameserver details.
  32.  
  33.  
  34. >> Example of ~/spool/scripts/up222:
  35. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36. finger status@gate.demon.co.uk
  37.  
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  39.